#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
using namespace std;
#define N 25
#define M 25

long long dp[N][M] = { 0 };
int main()
{
    int n, m;
    int x, y;
    cin >> n >> m >> x >> y;
    x += 1, y += 1;
    dp[0][1] = 1;
    for (int i = 1; i <= n + 1; i++)
    {
        for (int j = 1; j <= m + 1; j++)
        {
            if (abs(i - x) + abs(j - y) == 3 && x != i && y != j || i == x && j == y)
                dp[i][j] = 0;
            else
                dp[i][j] = dp[i - 1][j] + dp[i][j - 1];
            cout << dp[i][j] << ' ';
        }
        cout << endl;
    }
    cout << dp[n + 1][m + 1];
    return 0;
}